package com.example.shopcommon.feign;

import com.example.shopcommon.dao.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "service-user")
public interface UserFeignClient {

    @GetMapping("/user/get")
    public User get(@RequestParam("id") Long id);

    @PostMapping("/user/reduce")
    String reduce(@RequestBody User user);
}
